package com.campusbackend.mapper;

import com.campusbackend.entity.AdminUsers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 管理员用户表 Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-07-24
 */
@Mapper
public interface AdminUsersMapper extends BaseMapper<AdminUsers> {

    /**
     * 根据用户名查找管理员
     * @param username 用户名
     * @return 管理员信息
     */
    @Select("SELECT * FROM admin_users WHERE username = #{username}")
    AdminUsers findByUsername(String username);

}
